home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
comm2
/
termsorc.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LTP_Atol.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-24
|
401b
|
27 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
ULONG __regargs
LTP_Atol(STRPTR String)
{
ULONG Value = 0;
while(*String == ' ' || *String == '\t')
String++;
while(*String)
{
if(*String >= '0' && *String <= '9')
Value = (Value * 10) + ((*String++) & 0xF);
else
break;
}
return(Value);
}